<template>
	<!-- 无网络页面 -->
	<view class="temp">
		<view class="noNetWork">
			<view class="noNetWorkTop">
				<image :src="require('@/static/images/wangluo.png')" mode=""></image>
				<text>抱歉，无网络连接！</text>
			</view>
			<view class="noNetWorkBottom" @tap="toWangluo">
				<text>请打开网络设置</text>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		methods: {
			// #ifdef APP-PLUS
			toWangluo() {
				var main = plus.android.runtimeMainActivity();
				var Intent = plus.android.importClass("android.content.Intent");
				var mIntent = new Intent('android.settings.WIRELESS_SETTINGS');
				main.startActivity(mIntent);
			}
			// #endif
		},
	}
</script>

<style lang="scss">
	.temp {
		position: fixed;
		top: 0;
		bottom: 0;
		left: 0;
		right: 0;
		@include flex;
		flex-direction: column;
		align-items: center;
		justify-content: center;

		.noNetWork {
			@include flex;
			align-items: center;
			justify-content: center;
			flex-direction: column;

			.noNetWorkTop {
				@include flex;
				align-items: center;
				justify-content: center;
				flex-direction: column;

				image {
					width: 280rpx;
					height: 260rpx;
				}

				text {
					color: $theme-color;
					margin-top: 30rpx;
				}
			}

			.noNetWorkBottom {
				position: relative;
				width: 215rpx;
				height: 64rpx;
				background: $theme-color;
				box-shadow: 0rpx 4rpx 12rpx 2rpx rgba(54, 121, 254, 0.2);
				border-radius: 34rpx 34rpx 34rpx 34rpx;
				margin-top: 30rpx;
				color: #fff;
				opacity: 1;
				@include flex;
				align-items: center;
				justify-content: center;
			}
		}
	}
</style>